package com.yzc.android.event;

import com.yzc.android.ui.base.lifecycle.LifeCycleComponentManager;
import de.greenrobot.event.EventBus;

/**
 * Created by yzc on 16/4/22.
 */
public class EventBusManager {
    private static final EventBus instance = new EventBus();

    private EventBusManager() {
    }

    public static EventLifeCycleHandler bindContainerAndHandler(Object container, EventLifeCycleHandler handler) {
        LifeCycleComponentManager.tryAddComponentToContainer(handler, container);
        return handler;
    }

    public static final EventBus getInstance() {
        return instance;
    }
}
